$(function() {
	var clientY = 0,
		scrollArea = $("[data-overflow='scroll']");

	$("body").on("touchstart", function(e) {
		clientY = e.originalEvent.changedTouches["0"].clientY;
	});

	$("body").on("touchmove", function(e) {
//		console.log(e.target.offsetParent);
		console.log(e);
		e.preventDefault();
	});

//	scrollArea.on("touchmove", function(e) {
//		var onTop = $(this).scrollTop() == 0,
//			onBottom = $(this)["0"].scrollHeight - $(this).scrollTop() == $(this)["0"].clientHeight,
//			moveUp = e.originalEvent.changedTouches["0"].clientY > clientY,
//			moveDown = e.originalEvent.changedTouches["0"].clientY < clientY;
//
//		if(!((onTop && moveUp) || (onBottom && moveDown))) {
//			e.stopPropagation();
//		}
//	});
});